/*
 * FileChooserDelegate.h  0.4.0 / Dec 04, 2010
 *
 * Copyright (c) 2010 - 2011, cute4j.com and contributors.
 *
 * This software is licensed under the LGPL version 2.1 license.
 * A copy of this license is included in the file LICENSE-LGPL.txt.
 */
#ifndef FILECHOOSERDELEGATE_H
#define FILECHOOSERDELEGATE_H

#include "Cute4jSwing.h"

// FileChooserDelegate Class. --------------------------------------------------

/*!
 * \brief FileChooser Delegate.
 *
 * \author Slobodan Vrkacevic
 * \version 0.4.0
 */
class CUTE4J_EXPORT FileChooserDelegate
{
public: // native calls
  static jstring getExistingDirectoryName(JNIEnv *env, jclass cls,
                                          jlong parentDelegate, jstring caption,
                                          jstring directory);
  static jstring getOpenFileName(JNIEnv *env, jclass cls, jlong parentDelegate,
                                 jstring caption, jstring directory,
                                 jstring filter, jstring selectedFilter);
  static jstring getSaveFileName(JNIEnv *env, jclass cls, jlong parentDelegate,
                                 jstring caption, jstring directory,
                                 jstring filter, jstring selectedFilter);
};

// Macro Definition. -----------------------------------------------------------

#define FILE_CHOOSER_DELEGATE \
    (reinterpret_cast<FileChooserDelegate *>(delegate))

#endif // FILECHOOSERDELEGATE_H
